package entity;

/**
 * @author wuyunbin
 * 状态
 */
public class StatusCode {
    /**
     * 通用状态 成功
     */
    public static final Status SUCCESS = new Status(true, 20000, "操作成功");
    public static final Status SUCCESS_INSERTED = new Status(true, 20000, "新增成功");
    public static final Status SUCCESS_QUERY = new Status(true, 20000, "查询成功");
    public static final Status SUCCESS_UPDATED = new Status(true, 20000, "修改成功");
    public static final Status SUCCESS_DELETED = new Status(true, 20000, "删除成功");
    public static final Status SUCCESS_SEND = new Status(true, 20000, "发送成功");
    public static final Status SUCCESS_VERIFY = new Status(true, 20000, "验证成功");
    public static final Status SUCCESS_APPLY = new Status(true, 20000, "提交申请成功");
    public static final Status SUCCESS_UPLOAD = new Status(true, 20000, "上传成功");
    public static final Status SUCCESS_COMMENT = new Status(true, 20000, "评价成功");
    public static final Status SUCCESS_GET = new Status(true, 20000, "获取成功");
    public static final Status SUCCESS_LOGIN = new Status(true, 20000, "登录成功");

    /**
     * 通用状态 失败
     */
    public static final Status FAIL = new Status(false, 20001, "执行失败");
    public static final Status FAIL_VERIFY = new Status(false, 20002, "验证失败");
    public static final Status FAIL_GET = new Status(false, 20003, "获取失败");
    public static final Status FAIL_REQUEST = new Status(false, 20004, "请求失败");

    /**
     * 通用状态 错误
     */
    public static final Status ERROR = new Status(false, 300001, "错误");
    public static final Status ERROR_EXECUTION = new Status(false, 300002, "执行错误");
    public static final Status ERROR_CONTENT_REQUIRED = new Status(false, 300003, "内容必填");
    /**
     * 文件错误
     */
    public static final Status ERROR_FILE_MISSING = new Status(false, 30004, "文件丢失");
    public static final Status ERROR_FILE_FORMAT = new Status(false, 30005, "文件格式错误");

    /**
     * 验证码类错误
     */
    public static final Status ERROR_VERIFICATION_CODE = new Status(false, 30006, "验证码错误");
    public static final Status ERROR_VERIFICATION_CODE_EXPIRED = new Status(false, 30007, "验证码过期");
    public static final Status ERROR_VERIFICATION_CODE_REQUIRED = new Status(false, 30008, "验证码必填");
    public static final Status ERROR_FLAG_MISSING = new Status(false, 30009, "场景值丢失");
    public static final Status ERROR_FLAG_INVALID = new Status(false, 30010, "场景值非法");

    public static final Status ERROR_INVALID_PHONE = new Status(false, 30011, "手机号无效");
    public static final Status ERROR_PHONE_REQUIRED = new Status(false, 30012, "手机号必填");
    public static final Status ERROR_PHONE_ALREADY_EXISTS = new Status(false, 30013, "手机号已存在");
    public static final Status ERROR_SEND_TOO_MANY_SMS = new Status(false, 30014, "发送过多短信");
    public static final Status ERROR_INVALID_EMAIL = new Status(false, 30015, "邮箱格式无效");
    public static final Status ERROR_EMAIL_REQUIRED = new Status(false, 30016, "邮箱格式必填");
    /**
     * 请求相关错误
     */
    public static final Status ERROR_REQUIRED_PARAMETER_MISSING = new Status(false, 30017, "缺少必填参数");
    /**
     * 业务通用错误
     */
    public static final Status ERROR_RECORD_DOES_NOTE_EXIST = new Status(false, 30018, "没有这条记录");

    public static final Status ERROR_USER_INVALID = new Status(false, 30019, "用户状态异常");
    public static final Status ERROR_PASSWORD_REQUIRED = new Status(false, 30020, "密码必填");
    public static final Status ERROR_PASSWORD_WRONG = new Status(false, 30021, "密码错误");
    public static final Status ERROR_USER_ALREADY_EXISTS= new Status(false,30116,"用户已存在");

    public static final Status ERROR_TOKEN_EXPIRED = new Status(false, 30022, "凭证过期请重新登录");
    public static final Status ERROR_TOKEN_INVALID = new Status(false, 30023, "凭证错误");

    public static final Status ERROR_STATUS_REQUIRED = new Status(false, 30024, "状态不能为空");
    public static final Status ERROR_STATUS_INVALID = new Status(false, 30025, "状态非法");

    public static final Status ERROR_USER_DOES_NOTE_EXIST = new Status(false, 30026, "用户不存在");
    public static final Status ERROR_RECOMMEND_ID_INVALID = new Status(false, 30027, "推荐人Id不存在");

    public static final Status ERROR_PROVINCE_REQUIRED = new Status(false, 30026, "省份必填");
    public static final Status ERROR_CITY_REQUIRED = new Status(false, 30029, "城市必填");
    public static final Status ERROR_AREA_REQUIRED = new Status(false, 30030, "县区必填");
    public static final Status ERROR_PROVINCE_ID_REQUIRED = new Status(false, 30031, "省份id必填");
    public static final Status ERROR_CITY_ID_REQUIRED = new Status(false, 30032, "城市id必填");
    public static final Status ERROR_AREA_ID_REQUIRED = new Status(false, 30033, "县区id必填");

    public static final Status ERROR_ID_CARD_REQUIRED = new Status(false, 30034, "身份证号码必填");
    public static final Status ERROR_ID_CARD_FRONT_REQUIRED = new Status(false, 30035, "身份证国徽页必填");
    public static final Status ERROR_ID_CARD_BACK_REQUIRED = new Status(false, 30036, "身份证个人信息必填");
    public static final Status ERROR_DUPLICATE_PHONE = new Status(false, 30136, "手机号码已被占用");


    public static final Status ERROR_BANK_REQUIRED = new Status(false, 30037, "开户行必填");
    public static final Status ERROR_BANK_ACCOUNT_REQUIRED = new Status(false, 30038, "银行账号必填");
    public static final Status ERROR_ACCOUNT_TYPE_REQUIRED = new Status(false, 30039, "账户类型必填");
    public static final Status ERROR_ACCOUNT_NAME_REQUIRED = new Status(false, 30040, "账户名称必填");

    public static final Status ERROR_AD_TITLE_REQUIRED = new Status(false, 30041, "广告标题不能为空");
    public static final Status ERROR_AD_TYPE_REQUIRED = new Status(false, 30042, "广告类型不能为空");
    public static final Status ERROR_AD_TYPE_INVALID = new Status(false, 30043, "广告类型错误");
    public static final Status ERROR_AD_POSITION_REQUIRED = new Status(false, 30044, "广告位置不能为空");
    public static final Status ERROR_AD_POSITION_INVALID = new Status(false, 30045, "广告位置错误");
    public static final Status ERROR_AD_IMAGE_URL_REQUIRED = new Status(false, 30046, "广告图片路径不能为空");
    public static final Status ERROR_BANNER_TITLE_REQUIRED = new Status(false, 30047, "轮播图标题不能为空");
    public static final Status ERROR_BANNER_TYPE_REQUIRED = new Status(false, 30048, "轮播图类型不能为空");
    public static final Status ERROR_BANNER_TYPE_INVALID = new Status(false, 30049, "轮播图类型错误");
    public static final Status ERROR_BANNER_POSITION_INVALID = new Status(false, 30050, "轮播图位置错误");
    public static final Status ERROR_BANNER_IMAGE_URL_REQUIRED = new Status(false, 30051, "轮播图路径不能为空");

    public static final Status ERROR_ADMIN_DOES_NOTE_EXIST = new Status(false, 30052, "管理员不存在");

    public static final Status ERROR_AGENT_DOES_NOTE_EXIST = new Status(false, 30053, "合伙人不存在");
    public static final Status ERROR_AGENT_AREA_INVALID = new Status(false, 30054, "不能审核不是自己代理区域的申请单");
    public static final Status ERROR_AGENT_STATUS_INVALID = new Status(false, 30055, "预审通过,不能再次操作");
    public static final Status ERROR_AGENT_EXEC_FAIL = new Status(false, 30056, "平台已审核通过,不能再次操作");
    public static final Status ERROR_AGENT_NAME_REQUIRED = new Status(false, 30057, "合伙人名称必填");
    public static final Status ERROR_AGENT_REMARK_REQUIRED = new Status(false, 30057, "拒绝理由必填");
    public static final Status ERROR_MERCHANT_PHONE_NOT_EXIST=new Status(false,30115,"商户手机号错误");

    public static final Status ERROR_MERCHANT_DOES_NOTE_EXIST = new Status(false, 30058, "商户不存在");
    public static final Status ERROR_IMAGES_REQUIRED = new Status(false, 30059, "店内照必填");
    public static final Status ERROR_STORE_DOES_NOTE_EXIST = new Status(false, 30060, "门店不存在");
    public static final Status ERROR_COMPANY_NAME_REQUIRED = new Status(false, 30061, "公司必填");
    public static final Status ERROR_STORE_NAME_REQUIRED = new Status(false, 30061, "店铺必填");
    public static final Status ERROR_MERCHANT_TYPE_REQUIRED = new Status(false, 30062, "商户类型必填");
    public static final Status ERROR_MERCHANT_TYPE_INVALID = new Status(false, 30063, "商户类型非法");
    public static final Status ERROR_MERCHANT_DISABLED = new Status(false, 30064, "商家被禁用");
    public static final Status ERROR_CONTACT_REQUIRED = new Status(false, 30065, "商户联系人必填");
    public static final Status ERROR_INDUSTRYID_REQUIRED = new Status(false, 30066, "行业必填");
    public static final Status ERROR_INDUSTRYID_INVALID = new Status(false, 30067, "行业id非法");
    public static final Status ERROR_INDUSTRYID_LICENSE_REQUIRED = new Status(false, 30068, "行业许可必填");
    public static final Status ERROR_INDUSTRYID_LICENSE_INVALID = new Status(false, 30069, "行业许可图片必填");
    public static final Status ERROR_BUSINESS_LICENSE_REQUIRED = new Status(false, 30070, "营业执照必填");
    public static final Status ERROR_BUSINESS_LICENSE_INVALID = new Status(false, 30071, "营业执照非法");
    public static final Status ERROR_COVER_IMAGE_REQUIRED = new Status(false, 30072, "门头照必填");

    public static final Status ERROR_PAY_AMOUNT_REQUIRED = new Status(false, 30073, "实付金额必填");
    public static final Status ERROR_PAY_AMOUNT_MISMATCH = new Status(false, 30074, "实付金额不匹配");
    public static final Status ERROR_FACE_PRICE_REQUIRED = new Status(false, 30075, "面额必填");

    public static final Status ERROR_COUPON_DOES_NOTE_EXIST = new Status(false, 30076, "优惠券不存在");

    public static final Status ERROR_ORDERS_DOES_NOTE_EXIST = new Status(false, 30077, "订单不存在");
    public static final Status ERROR_ORDERS_ID_REQUIRED = new Status(false, 30078, "订单id必填");

    public static final Status ERROR_RATE_REQUIRED = new Status(false, 30079, "会员折扣必填");
    public static final Status ERROR_PLUS_RATE_REQUIRED = new Status(false, 30080, "plus会员折扣必填");
    public static final Status ERROR_ADDRESS_REQUIRED = new Status(false, 30081, "详细地址必填");
    public static final Status ERROR_ADDRESS_COUNT_INVALID = new Status(false, 30082, "详细地址数量过多");
    public static final Status ERROR_REAL_NAME_REQUIRED = new Status(false, 30083, "真实姓名必填");
    public static final Status ERROR_RECIPIENT_NAME_REQUIRED = new Status(false, 30084, "收件人姓名必填");
    public static final Status ERROR_SEX_REQUIRED = new Status(false, 30085, "性别必填");
    public static final Status ERROR_SEX_INVALID = new Status(false, 30085, "性别必须是(0-女 1-男 2-保密)中的一种");
    public static final Status ERROR_LONGITUDE_REQUIRED = new Status(false, 30086, "经度必填");
    public static final Status ERROR_LATITUDU_REQUIRED = new Status(false, 30087, "纬度必填");
    public static final Status ERROR_GOODS_CATEGORY_NAME_REQUIRED = new Status(false, 30088, "商品分类名称必填");
    public static final Status ERROR_GOODS_CATEGORY_DOES_NOTE_EXIST = new Status(false, 30089, "商品分类不存在");
    public static final Status ERROR_GOODS_CATEGORY_DOES_USED_DELETE = new Status(false, 30090, "不能删除有使用中的商品分类");
    public static final Status ERROR_GOODS_DOES_NOTE_EXIST = new Status(false, 30091, "商品不存在");
    public static final Status ERROR_GOODS_ON_SALE_INVALID_DELETE = new Status(false, 30092, "商品必须先下架然后才能删除");
    public static final Status ERROR_GOODS_ON_SALE_REQUIRED = new Status(false, 30093, "商品上下架状态必填");
    public static final Status ERROR_GOODS_ON_SALE_INVALID = new Status(false, 30094, "商品上下架状态非法");
    public static final Status ERROR_GOODS_STATUS_REQUIRED = new Status(false, 30095, "商品审核状态必填");
    public static final Status ERROR_GOODS_STATUS_INVALID = new Status(false, 30096, "商品审核状态错误");
    public static final Status ERROR_GOODS_NAME_REQUIRED = new Status(false, 30097, "商品名称必填");
    public static final Status ERROR_GOODS_PRICE_REQUIRED = new Status(false, 30098, "商品原价必填");
    public static final Status ERROR_GOODS_PRICE_INVALID = new Status(false, 30099, "商品原价非法");
    public static final Status ERROR_GOODS_STOCK_REQUIRED = new Status(false, 30100, "商品库存必填");
    public static final Status ERROR_GOODS_STOCK_INVALID = new Status(false, 30101, "商品库存非法");
    public static final Status ERROR_GOODS_IMAGES_REQUIRED = new Status(false, 30102, "商品图片必填");
    public static final Status ERROR_GOODS_IMAGES_INVALID = new Status(false, 30103, "商品图片非法");
    public static final Status ERROR_GOODS_IS_COUPON_REQUIRED = new Status(false, 30104, "商品是否卡券必填");
    public static final Status ERROR_GOODS_IS_COUPON_INVALID = new Status(false, 30105, "商品是否卡券非法");
    public static final Status ERROR_GOODS_INTRODUCTION_REQUIRED = new Status(false, 30106, "商品介绍必填");
    public static final Status ERROR_GOODS_SUM_REQUIRED = new Status(false, 30107, "商品数量必填");
    public static final Status ERROR_GOODS_SUM_NEGATIVE_NUMBER = new Status(false, 30108, "商品数量不能为负数");
    public static final Status ERROR_GOODS_SUM_LARGER_THAN_STOCK = new Status(false, 30109, "商品数量大于店家库存");

    public static final Status ERROR_AGENT_AGENT_TYPE_REQUIRED = new Status(false, 30110, "代理商类型必填");
    public static final Status ERROR_AGENT_AGENT_TYPE_INVALID = new Status(false, 30111, "代理商类型非法");
    public static final Status ERROR_AGENT_ACCOUNT_TYPE_REQUIRED = new Status(false, 30112, "代理商账户类型必填");
    public static final Status ERROR_AGENT_ACCOUNT_TYPE_INVALID = new Status(false, 30113, "代理商账户类型非法");

    public static final Status ERROR_MEMBER_NO_ORDERS_INVALID = new Status(false, 30114, "你还没在该店成功下单并支付,不能进行后续操作");
    public static final Status ERROR_KEYWORDS_REQUIRED=new Status(false, 30120, "搜索关键词必填");
    /**
     * 第三方API错误
     */
    public static final Status ERROR_WE_CHAT_CODE_INVALID = new Status(false, 40001, "微信code值错误");
    public static final Status ERROR_WE_CHAT_CODE_EXPIRED = new Status(false, 40002, "微信code值过期");

}
